
import request from '@/utils/request'

/**
 * 订单 列表
 * @param prams
 */
export function orderListApi(params) {
  return request({
    url: '/admin/platform/haOrder/list',
    method: 'post',
    data:params
  })
}

/**
 * 更新订单 列表
 * @param prams
 */
export function syncCreateOrderApi(params) {
  return request({
    url: '/admin/platform/haOrder/syncCreateOrder',
    method: 'get',
    data:params
  })
}


/**
 * 订单 详情
 * @param prams
 */
export function orderDetailApi(params) {
  return request({
    url: `/admin/platform/haOrder/detail/${params.id}`,
    method: 'get'
  })
}

/**
 * 订单换单 列表
 * @param prams
 */
export function changeExpressListApi(params) {
  return request({
    url: '/admin/platform/haOrder/changeExpressList',
    method: 'post',
    data:params
  })
}

/**
 * 订单换单 列表
 * @param prams
 */
export function callCourierApi(params) {
  return request({
    url: '/admin/platform/haOrder/changeNoFirstExpressNumber',
    method: 'post',
    data:params
  })
}

/**
 * 导出
 * @param prams
 */
export function exportExcelApi(params) {
  return request({
    url: '/admin/platform/haOrder/exportExcel',
    method: 'post',
    responseType: 'blob',
    data:params
  })
}

/**
 * 自提单
 * @param prams
 */
export function pickupListApi(params) {
  return request({
    url: '/admin/platform/haOrder/pickupList',
    method: 'post',
    data:params
  })
}

/**
 * 自提单OTP码验证
 * @param prams
 */
export function otpCodeCheckApi(params) {
  return request({
    url: '/admin/platform/haOrder/otpCodeCheck',
    method: 'post',
    data:params
  })
}
